import type {
    NavListLevel1Type,
    channelDetailType,
} from '@/server/api/channel/[...]'

// 获取导航列表
export const getNavList = (params?:{
    id:number
}):  Promise<NavListLevel1Type> => {
    return nuxtRequest({
        url:'/api/channel/list',
        params
    })
}
// 获取新闻详情
export const getNewDetail = (params?:{
    id:number
}):  Promise<channelDetailType> => {
    return nuxtRequest({
        url:'/api/channel/detail',
        params
    })
}